package cn.hjh.test;

import cn.smbms.pojo.User;
import cn.smbms.service.user.UserService;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testch08 {

    //使用log4j日志记录器
    private static Logger logger = Logger.getLogger(UserTest.class);


    @Test
    public void testshi8(){
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext-mybatis.xml");
        //UserService dataSource = (UserService) context.getBean("dataSource");
        //User user = new User();

        //第8章示例9
        //String[] configs = {"applicationContext-mybatis.xml"};
        //ApplicationContext context = new ClassPathXmlApplicationContext(configs);
    }
}
